<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<% String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; %>
<html> 
<jsp:include page="../head.jsp"></jsp:include>
<body>
<jsp:include page="Left.jsp"></jsp:include>
<br/><br/><br/>
<a href='TbRoleServlet?method=showadd'><img src="./images/button-add.gif" border="0"/></a><br/>
<table>
<tr>
    <td>角色名称</td>
    <td>用户编号</td>
    <td>角色备注</td>
    <td>创建时间</td>
    <td><a href=''>修改</a></td>
    <td><a href='TbRoleServlet?method=del&delIds=${tbRole.roleId}'>删除</a></td>
</tr>
<c:forEach items="${sessionScope.tbRoleList==null?'':sessionScope.tbRoleList}" var="tbRole" varStatus="status">
<tr>
    <td>${tbRole.roleName}</td>
    <td>${tbRole.userId}</td>
    <td><a title="${tbRole.roleMemo}">${fn:substring(tbRole.roleMemo,0,20 )}</a></td>
    <td>${tbRole.createTime}</td>
    <td><a href=''>修改</a></td>
    <td><a href='TbRoleServlet?method=del&delIds=${tbRole.roleId}'>删除</a></td>
</tr>
</c:forEach>
</table>
<jsp:include page="../foot.jsp"></jsp:include>
</body></html>